import SvgIcon from './SvgIcon/index.vue'
import AA from './a/index.vue'
import Category from './Category/index.vue'
import Title from './title/index.vue'
// 引入全部图标组件，进行全局注册
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const allComponent = {SvgIcon, AA, Category, Title}
// console.log(ElementPlusIconsVue);
export const componentPlugin = {
    install(app: any) {
        // console.log(allComponent);
        Object.keys(allComponent).forEach(key => {
            app.component(key, allComponent[key])
        })
        // 注册全局图标
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
        }
    }
    
}